package com.duanjc.shiro.mapper;

import com.duanjc.shiro.entity.TPerms;
import com.duanjc.shiro.entity.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author duanjiangcheng
 * @since 2022-11-29 03:58:52
 */
@Mapper
public interface TUserMapper extends BaseMapper<TUser> {


    TUser findRolesByUserName(@Param("username") String username);


    List<TPerms> findPermsByRoleId(@Param("id") Integer roleId);

    @Select("select * from t_user")
    List<TUser> all();
}
